.draggerUpload {
  width: 100%;
  overflow: hidden;
  border-radius: 4px;

  .tips {
    display: flex;
    justify-content: space-between;
    height: 39px;
    padding-right: 16px;
    padding-left: 16px;
    color: #fff;
    font-size: 12px;
    line-height: 39px;
    background: #2f5083;
  }

  .body {
    align-items: center;
    padding: 15px;
    overflow: hidden;
    border: 1px dashed #7688a5;
    border-width: 0 1px 1px 1px;

    .list {
      width: 100%;
      overflow: hidden;
    }

    > span {
      display: flex;
    }

    .drag {
      width: 100%;
      height: 100%;
      background-color: transparent;
      border: none;
    }

    .video {
      width: 100%;
      height: 100%;
    }
  }
}

.item {
  float: left;
  width: 33.333%;
  height: 225px;
  padding: 5px;
  cursor: move;

  .content {
    position: relative;
    width: 100%;
    height: 100%;
    background: #293e6b;

    &:hover {
      .over {
        display: block;
      }
    }

    .header {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 30px;
      padding: 0 8px;
      overflow: hidden;
      color: #7688a5;
      font-size: 12px;
      line-height: 30px;
      white-space: nowrap;
      text-overflow: ellipsis;
      background-color: #244270;
    }

    .img {
      width: 100%;
      height: 100%;
      background-position: center;
      background-size: cover;
    }
    .error {
      position: absolute;
      top: 50%;
      left: 50%;
      color: red;
      font-size: 16px;
      transform: translateX(-50%) translateY(-50%);
    }
    .progress {
      position: absolute;
      top: 0;
      left: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 100%;
      background-color: #000;
      opacity: 0.7;

      :global {
        .ant-progress-text {
          color: #fff;
        }
      }
    }

    .over {
      position: absolute;
      bottom: 0;
      left: 0;
      z-index: 1;
      display: none;
      width: 100%;
      height: 60px;

      .mask {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #000;
        opacity: 0.8;
      }

      .main {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
      }

      .button {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-right: 58px;
        color: #fff;
        font-size: 12px;
        line-height: 17px;
        cursor: pointer;

        &:last-child {
          margin-right: 0;
        }

        .icon {
          width: 28px;
          height: 28px;
          margin-bottom: 2px;
        }
      }
    }
  }

  .addwrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;

    .icon {
      width: 31px;
      height: 31px;
      margin-bottom: 10px;
      background: url('./images/icon-add.png') no-repeat center / 100%;
    }

    .title {
      margin-bottom: 8px;
      color: #fff;
      font-size: 16px;
      line-height: 22px;
    }

    .des {
      margin-bottom: 4px;
      color: #7688a5;
      font-size: 12px;
      line-height: 17px;
    }
  }
}

.myUpload {
  .uploadWrapper {
    position: relative;
    width: 100%;
    height: 100%;
  }
  .input {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    cursor: pointer;
    opacity: 0;
  }
}
